home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2003-12-06 | 1.5 KB | 56 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Appearance\Desktop\Icons\'Recycle Bin' Options"
- "NAME"="Recycle Bin Properties Menu Entry"
- "VERSION"="1.01"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Allow "Properties" Menu Entry for Current User"
- "TEXT 2"="Allow "Properties" Menu Entry for All Users"
- "DESCRIPTION 1"="These options control if the "Properties" menu entry of the right-click menu of Recycle Bin is visible or not."
- "DESCRIPTION 2"="You can control this setting for the current user only or for all users on this computer. "
- "AUTHOR"="Ojatex@aol.com"
- "CONTACTURL"="http://www.xteq.com/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"=""
-
-
- sP_USR="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoPropertiesRecycleBin"
- sP_SYS="HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoPropertiesRecycleBin"
-
- ' both DW
-
- SUB Plugin_Initialize
- i=RegReadValue(sP_USR)
- if i<>1 then
- Call SetUIElement(1,true)
- end if
-
- i=RegReadValue(sP_SYS)
- if i<>1 then
- Call SetUIElement(2,true)
- end if
- END SUB
-
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- i=GetUIElement(1)
- if i=true then
- If RegValueExists(sP_USR) then Call RegDeleteValue(sP_USR)
- else
- Call RegWriteValue(sP_USR,1,2)
- end if
-
- i=GetUIElement(2)
- if i=true then
- If RegValueExists(sP_SYS) then Call RegDeleteValue(sP_SYS)
- else
- Call RegWriteValue(sP_SYS,1,2)
- end if
-
-
- Call Restart()
- END SUB
-
- SUB Plugin_Terminate
- END SUB